package com.example.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface MyAuthority {
    enum LoginType
    {
        ANONYMOUSLY("匿名访问"), IS_LOGIN("已登录用户访问"), ALL("所有");
         LoginType(String type)
        {
            this.type=type;
        }
        private String type;
    }
    LoginType value();
}
